import Vuex from "vuex";
import Vue from "vue";
Vue.use(Vuex);
import cart from "./modules/cart"
import product from "./modules/product"

//创建仓库
let store = new Vuex.Store({
    strict:true,//如果修改不是通过 mutations就会报错
    modules:{
        cart:cart,
        product:product,
    }
})
export default store ;